#!/usr/bin/python3

a = 60
print("a 二进制值为：",bin(a))

b = 13
print("b 二进制值为：",bin(b))

c = 0

c = a & b
print("1-c 十进制值为：",c)
print("1-c 二进制值为：",bin(c))

c = a | b
print("2-c 十进制值为：",c)
print("2-c 二进制值为：",bin(c))

c = a ^ b
print("3-c 十进制值为：",c)
print("3-c 二进制值为：",bin(c))

c = ~a
print("4-c 十进制值为：",c)
print("4-c 二进制值为：",bin(c))

c = a << 2
print("5-c 十进制值为：",c)
print("5-c 二进制值为：",bin(c))

c = a >> 2
print("6-c 十进制值为：",c)
print("6-c 二进制值为：",bin(c))